<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>新增订单</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <!--判断是不是 移动设备-->
    <script type="3d172f8529a5014e46cb142f-text/javascript">
     if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){
         document.getElementById("sdfdf").style.display = "block";
     }
    </script>

    <script>
        /*-------------------- 获取系统当前时间方法start------------------------ */
        function datetime() {
            var now = new Date();
            document.getElementById("time").value = now.getFullYear() + "-"
                + (now.getMonth() + 1) + "-" + now.getDate();
            document.getElementById("time").value += " " + now.getHours() + ":"
                + now.getMinutes() + ":" + now.getSeconds();
        }
        window.setInterval("datetime()", 1000);
        /*--------------------------- 获取系统当前时间方法end------------------------ */

    </script>
</head>
<body>
    <%--  /book/addBook  注意这个路径别写错了      --%>
    <div class="container" style="width: 100%;height: 100%;background-image: url(${pageContext.request.contextPath}/pic/car3.png);position: absolute;background-size:100% 100%">

        <div class="row clearfix">
            <div class="col-md-12 column">
                <div class="page-header">
                    <h1>
                        <small>新增订单</small>
                    </h1>
                </div>
            </div>
        </div>
<%--        插入订单--%>
        <form action="${pageContext.request.contextPath}/book/addBook" method="post">
            订单id：<input type="text" name="id" required><br><br><br>
            车牌号：<input type="text" name="car_number" value="豫R-ling6" required><br><br><br>
            入库时间：<input type="text" name="entry_date" id="time" style="text-align: left;" required><br><br><br>
            <input type="submit" value="入库">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <button type="button"  onclick="javascript:history.back(-1);" value="返回">返回</button>
        </form>

</body>
</html>
